package com.hxm.appGenealogy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxm.appGenealogy.config.Constant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("photo")
public class imagePh {


    @TableId(type = IdType.AUTO)
    private Long id;
    private String photoName;
    private String photoCover;
    private Long fanilyId;
    @DateTimeFormat(pattern = Constant.timeFormat)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date time;
    private Integer quantity;
    private Long peopleId;
}
